package com.yanqu.road.server.cmd.activity.chuhan;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ChuHanProto;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.chuhan.CrossChuHanMgr;
import com.yanqu.road.server.manager.activity.chuhan.activity.CrossChuHanActivity;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C2_CROSS_CHUHAN_GET_TEAM_ROUTE_LIST, desc = "获取到指定城市的队伍移动路径")
public class CrossChuHanGetTeamRouteListCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        ChuHanProto.CrossChuHanTransClientReqMsg reqMsg = ChuHanProto.CrossChuHanTransClientReqMsg.parseFrom(packet.getBytes());
        ChuHanProto.ChuHanGetTeamRouteListReqMsg clientReq = ChuHanProto.ChuHanGetTeamRouteListReqMsg.parseFrom(reqMsg.getClientReq());
        CrossChuHanActivity activity = CrossChuHanMgr.getActivity(reqMsg.getActivityId(), groupId);
        activity.getToCityRouteList(packet.getPlayerId(), clientReq.getCityId());

        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }

}
